#include <stdio.h>


int f()
{
    static int x = 0;
    return x;
}

int g()
{
    static int x = 10;
    return x;
}

void main()
{
    
    printf("%d\n", f());
    printf("%d\n", g());
    x = 30;
    printf("%d\n", x);
    getchar();
}



/*
int cast(int num)
{
    short temp;
    temp = num;
    printf("%d\n", temp);

}
void main()
{
    cast(123456);
    getchar();
}
 */

/*
int fun1(unsigned word)
{
    int temp = 0;
    temp = (int) word << 2;
    printf("temp1 = %d\n", temp);
    temp = (int) temp >> 2;
    printf("temp2 = %d\n", temp);
    return (int) ((word << 24) >> 24);
}
int fun2(unsigned word)
{
    int temp = 0;
    temp = (int) word << 2;
    printf("temp3 = %d\n", temp);
    temp = temp >> 2;
    printf("temp4 = %d\n", temp);
    return ((int) word << 24) >> 24;
}
void main()
{
    int word = 256;
    printf("%d\n", fun1(word));
    printf("%d\n", fun2(word));
    getchar();
}
*/

/*
void swap(int *x, int *y)
{
    printf("x = %d\n", *x);
    printf("y = %d\n", *y);
    *x = *x ^ *y;
    *y = *x ^ *y;
    *x = *x ^ *y;
    printf("x = %d\n", *x);
    printf("y = %d\n", *y);
}
void main()
{
    int a = 344, b = 456;
    swap(&a, &b);
    getchar();
}
*/

/*
void main()
{
    char num = '1';
    printf("%d\n", num);
}
*/
